package jichenglei.instanceofcaozuofu;

/**
 * 
 * @author Jin Jing
 * instanceof用于检查对象的类，当对象被赋予null时，检查无效
 *
 */
public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String a = new String();
		if(a instanceof String) {
			System.out.println("yes");
		}
		else {
			System.out.println("no");
		}

	}

}
